﻿using System;
using System.Threading;
using System.Threading.Tasks;
using WordAI.Model;

namespace WordAI.Utils
{
    internal class DifyApiUtils
    {
        private const string endPoint = "https://dify.mccbts.com.cn/api/v1/";

        private const string apiKey = "app-Z1PH1pGVe40zDiS4yM38Irr1";


        /// <summary>
        /// 发送对话消息
        /// </summary>
        /// <param name="chatDto"></param>
        /// <param name="apiKey"></param>
        /// <param name="callback"></param>
        /// <param name="token"></param>
        /// <returns></returns>
        internal static async Task ChatMessages(DifyChatDto chatDto, string apiKey, Action<string, string> callback, CancellationToken token)
        {

        }

        /// <summary>
        /// 上传附件
        /// </summary>
        /// <param name="filePath"></param>
        /// <param name="apiKey"></param>
        /// <param name="user"></param>
        /// <returns></returns>
        internal static async Task<DifyFileResponseDto> UploadFile(string filePath,string apiKey,string user)
        {

        }
    }
}
